package com.shuqi.model.bean;

import java.util.List;

import com.shuqi.database.model.BookCataLog;

/**
 * 在线书籍数据结构
 * 
 * @author hxp
 * 
 */
public class BookData {
    private String bookId;
    private String sourceId;
    private String bookName;
    private String wordCount;
    private int PayMode;
    
    private String coverImg;         //书籍封面
    private String authorName;       //书籍作者
    
    private String hide;    // 是否隐藏Y隐藏，N正常
    private int readIsopen = -1; // 阅读页开关 0阅读关，1阅读正常
    private int coverIsopen = -1;// 封面开关 0封面关，1封面正常
    
    private int oidMax;              // 最大序号
    private int pageCount;           // 目录总页码
    private long chapterUpdateTime;  // 章节最后更新时间

    private List<BookCataLog> infos; // 目录信息
    
    // 以下是一搜独有字段
    private String isopen;      //关闭书籍信息
    
    public String getIsopen() {
        return isopen;
    }

    public void setIsopen(String isopen) {
        this.isopen = isopen;
    }


    public String getSourceId() {
        return sourceId;
    }

    public void setSourceId(String sourceId) {
        this.sourceId = sourceId;
    }

    /**
     * 返回 wordCount 的值
     * 
     * @return wordCount
     */

    public String getWordCount() {
        return wordCount;
    }

    /**
     * @param wordCount the wordCount to set
     */
    public void setWordCount(String wordCount) {
        this.wordCount = wordCount;
    }

    /**
     * 返回 infos 的值
     * 
     * @return infos
     */

    public List<BookCataLog> getInfos() {
        return infos;
    }

    /**
     * @param infos the infos to set
     */
    public void setInfos(List<BookCataLog> infos) {
        this.infos = infos;
    }


    /**
     * 返回 pageCount 的值
     * 
     * @return pageCount
     */

    public int getPageCount() {
        return pageCount;
    }

    /**
     * @param pageCount the pageCount to set
     */
    public void setPageCount(int pageCount) {
        this.pageCount = pageCount;
    }

    /**
     * 返回 oidMax 的值
     * 
     * @return oidMax
     */

    public int getOidMax() {
        return oidMax;
    }

    /**
     * @param oidMax the oidMax to set
     */
    public void setOidMax(int oidMax) {
        this.oidMax = oidMax;
    }

    /**
     * 返回 bookName 的值
     * 
     * @return bookName
     */

    public String getBookName() {
        return bookName;
    }

    /**
     * @param bookName the bookName to set
     */
    public void setBookName(String bookName) {
        this.bookName = bookName;
    }

    /**
     * 返回 bookId 的值
     * 
     * @return bookId
     */

    public String getBookId() {
        return bookId;
    }

    /**
     * @param bookId the bookId to set
     */
    public void setBookId(String bookId) {
        this.bookId = bookId;
    }

    /**
     * 返回 chapterUpdateTime 的值
     * 
     * @return chapterUpdateTime
     */

    public long getChapterUpdateTime() {
        return chapterUpdateTime;
    }

    /**
     * @param chapterUpdateTime the chapterUpdateTime to set
     */
    public void setChapterUpdateTime(long chapterUpdateTime) {
        this.chapterUpdateTime = chapterUpdateTime;
    }

    public String getCoverImg() {
        return coverImg;
    }

    public void setCoverImg(String coverImg) {
        this.coverImg = coverImg;
    }

    public String getAuthorName() {
        return authorName;
    }

    public void setAuthorName(String authorName) {
        this.authorName = authorName;
    }

    public String getHide() {
        return hide;
    }

    public void setHide(String hide) {
        this.hide = hide;
    }

    public int getReadIsopen() {
        return readIsopen;
    }

    public void setReadIsopen(int readIsopen) {
        this.readIsopen = readIsopen;
    }

    public int getCoverIsopen() {
        return coverIsopen;
    }

    public void setCoverIsopen(int coverIsopen) {
        this.coverIsopen = coverIsopen;
    }

    public int getPayMode() {
        return PayMode;
    }

    public void setPayMode(int payMode) {
        PayMode = payMode;
    }

    @Override
    public String toString() {
        return "CatalogData [pageCount="
                + pageCount + ", sourceId=" + sourceId + ", bookId=" + bookId + ", bookName="
                + bookName + ", wordCount=" + wordCount + ", chapterUpdateTime="
                + chapterUpdateTime + ", oidMax=" + oidMax + ", hide=" + hide
                + ", readIsopen=" + readIsopen + ", coverIsopen=" + coverIsopen + ", isopen="
                + isopen + ", author=" + authorName + ", infos=" + (infos==null?"null":infos.size()) + "]";
    }
}
